import urllib.request

url = "https://bj.fang.com/quanwangso/search.html?city=bj&refer=sy_seach"
response = urllib.request.urlopen(url)
html = response.read().decode('utf-8')

print(html)

import requests

url = "https://bj.fang.com/quanwangso/search.html?city=bj&refer=sy_seach"
response = requests.get(url)
html = response.text

print(html)
